Skip to content

docs: Expand README for vl53l1x driver.#219

Merged
nedseb merged 2 commits intomainfrom
vl53l1x-expend-readme
Mar 23, 2026
Merged

docs: Expand README for vl53l1x driver.#219
nedseb merged 2 commits intomainfrom
vl53l1x-expend-readme

Conversation

@Charly-sketch
Copy link
Copy Markdown
Contributor

Closes #193
Parent issue #194

Description

Expand VL53L1X README to match other drivers documentation level.

Changes

  • Add Features and Sensor Specifications sections
  • Add I2C Address section
  • Add Basic Usage example
  • Document full API (measurement, ranging, power, device control)
  • Add examples table
  • Add notes about initialization and device ID check

Checklist

  • README expanded with all sections
  • All public methods documented
  • Sensor specs mentioned

Copy link
Copy Markdown
Contributor

@nedseb nedseb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

C'est la meilleure PR jusqu'ici — l'API Reference est complète et la structure est claire. Quelques ajustements mineurs :

Cohérence avec les autres README

  1. Section I²C Address — Le bloc de code avec juste 0x29 est disproportionné (même remarque que sur les autres PR). Une ligne "Default I²C address: 0x29" suffit, ou remets-le dans le tableau des specs.

  2. Phrase d'intro vague — "This library is a port of the original MicroPython VL53L1X driver." → le lien source est tout en bas. Mets-le directement ici : "This library is a port of vl53l1x_pico." et supprime la section Source en bas.

Précision du contenu

  1. reset() — "software reset" — Le driver fait un write à 0x00 puis 0x01 sur le registre SOFT_RESET avec un lightsleep(100) entre les deux. Précise que le reset prend ~100ms.

  2. Specs approximatives — "± few mm (typical)" et "~27°" sont vagues. Si tu ne trouves pas les valeurs exactes dans la datasheet, c'est OK de les laisser mais remplace "± few mm" par "± 3% (typical)" qui est plus proche de la réalité.

  3. Note sur l'erreur d'init — "raises an error if the sensor is not detected" → précise le type d'erreur pour que ce soit actionable.

  4. Trailing whitespace — Ligne "This library is a port..." a un espace en fin de ligne.

Corrige ces points et c'est bon à merger.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Expands the vl53l1x driver README to match the documentation depth and structure used by other drivers in this repository.

Changes:

  • Adds feature list, sensor specification summary, and default I2C address section.
  • Adds a basic usage snippet and documents the public API surface (measurement, ranging, power/device control).
  • Adds an examples section and operational notes (init delay, device ID check).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread lib/vl53l1x/README.md Outdated
Comment on lines +22 to +24
| Feature | Value |
| ------------- | -------------------- |
| Technology | Time-of-Flight (ToF) |
Copy link

Copilot AI Mar 23, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Sensor Specifications table uses || at the start of each row (e.g., || Feature | Value |), which renders as an extra empty column (or can break table rendering depending on the Markdown renderer). Use a single leading | for each row so the table formats correctly.

Copilot uses AI. Check for mistakes.
Comment thread lib/vl53l1x/README.md Outdated
Comment on lines +89 to +92
| File | Description |
| ----------- | -------------------------- |
| distance.py | Basic distance measurement |

Copy link

Copilot AI Mar 23, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Examples table also starts rows with || (double pipe), which produces an empty first column / malformed table. Switch to single leading | for proper Markdown table formatting.

Copilot uses AI. Check for mistakes.
@nedseb
Copy link
Copy Markdown
Contributor

nedseb commented Mar 23, 2026

README réécrit en 29162fe pour traiter tous les commentaires :

Revue :

  1. I²C Address — Intégrée dans le tableau des specs + Device ID ajouté
  2. Phrase d'intro — Lien inline vers le repo source, section Source supprimée
  3. reset() — "software reset" — Précisé "hardware reset via SOFT_RESET register (takes ~100 ms)"
  4. Specs approximatives — "± few mm" → "± 3% (typical)", "~27°" → "27°"
  5. Erreur d'init — Précisé "raises OSError"
  6. Trailing whitespace — Supprimé

Copilot :

  1. Double pipe || — Tables réécrites avec un seul |

Prête à merger.

@nedseb nedseb merged commit fd0f608 into main Mar 23, 2026
3 checks passed
@nedseb nedseb deleted the vl53l1x-expend-readme branch March 23, 2026 15:55
@semantic-release-updater
Copy link
Copy Markdown

🎉 This PR is included in version 0.0.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs: Expand README for vl53l1x driver.

3 participants